<?php

namespace app\forms\menu;

use yii\db\Exception;
use app\forms\Model;
use app\models\Menu;
use yii\web\HttpException;

/**
 * 菜单 表单信息
 */
class ParamForm extends Model
{
    /**
     * @return array
     * @throws HttpException
     */
    public static function param()
    {
        try {
            return (new Menu)->getDropList();
        } catch (Exception $e) {
            (new self())->serverError();
        }
    }
}